package utility;

public class Text {
	public static boolean containPrefixString(String target, String prefix, int max_cut, int min_prefix_lenghth){
		max_cut = Math.min(max_cut, prefix.length() - min_prefix_lenghth);
		for(int i = 0 ; i <= max_cut ; i++){
			String subPre = prefix.substring(0, prefix.length() - i);
			if(target.indexOf(subPre) != -1)
				return true;
		}
		return false;
	}
}
